package com.ktjiaoyu.server.controller;

import com.ktjiaoyu.server.pojo.RespBean;
import com.ktjiaoyu.server.pojo.Salary;
import com.ktjiaoyu.server.service.ISalaryService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author jieGe
 * @since 2022-02-12
 */
@RestController
@RequestMapping("/salary")
public class SalaryController {
    @Resource
    private Salary salary;
    @Resource
    private ISalaryService salaryService;
//    @ApiOperation("综合信息统计")
//    @GetMapping(value = "/sob/list")
//    public RespBean toAdminAssignRole() {
//        List<Salary> echarts = salaryService.selectSysMapBarList();
//        HashMap<String, Object> res = new HashMap<>();
//        List<String> name = new ArrayList<>();
//        for( int i = 0; i < echarts.size(); i++ ){
//            name.add(echarts.get(i).getName());
//            System.out.println(echarts.get(i).getName());
//        }
//        res.put("name",name);
//        return RespBean.success("获取金额成功", res);
//    }

}
